﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Sms.ascx.cs" Inherits="Administrator_Controls_Sms" %>
<!-- table -->
<div class="box">
    <!-- box / title -->
    <div class="title">
        <h5 runat="server" id="title">
            Tin nhắn SMS</h5>
        <div class="search">
            <div class="input">
                <asp:TextBox ID="txtKeyword" runat="server" Text="Hãy nhập từ khóa !" onclick='if(this.value=="Hãy nhập từ khóa !")this.value=""'
                    onblur='if(this.value=="")this.value="Hãy nhập từ khóa !"' />
            </div>
            <div class="button">
                <asp:Button ID="btnSearch" runat="server" Text="Tìm Kiếm" OnClick="btnSearch_Click" />
            </div>
        </div>
    </div>
    <div id="divMessage" runat="server">
    </div>
    <div id="divAction" class="first-action">
        <div class="select">
            Đầu số:
            <asp:DropDownList ID="ddlService" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlService_SelectedIndexChanged">
            </asp:DropDownList>
        </div>
    </div>
    <!-- end box / title -->
    <div class="table">
        <table id="table-3">
            <thead>
                <tr>
                    <th class="stt">
                        STT
                    </th>
                    <th>
                        Số điện thoại
                    </th>
                    <th>
                        Mã
                    </th>
                    <th>
                        Nội dung
                    </th>
                    <th>
                        ID Yêu cầu
                    </th>
                    <th>
                        Nhà mạng
                    </th>
                    <th>
                        Kết quả trả về
                    </th>
                    <th>
                        Ngày gửi
                    </th>
                    <th class="selected last">
                        <input type="checkbox" class="checkall" />
                    </th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rptData" runat="server">
                    <ItemTemplate>
                        <tr id="<%#Eval("SMS_ID") %>">
                            <td align="center">
                                <%#(Container.ItemIndex+1)+(base.Cur_page(pagerContainer)-1)*base.Page_size %>
                            </td>
                            <td>
                                <%#Eval("USER_ID")%>
                            </td>
                            <td>
                                <%#Eval("COMMAND_CODE")%>
                            </td>
                            <td>
                                <%#Eval("SMS_CONTENT")%>
                            </td>
                            <td>
                                <%#Eval("REQUEST_ID")%>
                            </td>
                            <td>
                                <%#Eval("OPERATOR")%>
                            </td>
                            <td>
                                <%#Eval("RETURN_CONTENT")%>
                            </td>
                            <td align="center">
                                <%#Eval("CREATED_DATE","{0:dd/MM/yyyy}")%>
                            </td>
                            <td align="center" class="last">
                                <input id="chkBox" type="checkbox" value='<%#Eval("SMS_ID")%>' class="item" runat="server" />
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
        <div class="pagination pagination-left last">
            <div class="pagerContainer" id="pagerContainer" runat="server">
            </div>
        </div>
        <div class="action">
            <asp:DropDownList ID="ddlAction" runat="server" OnSelectedIndexChanged="ddlAction_SelectedIndexChanged"
                AutoPostBack="true" CssClass="selectwidth">
                <asp:ListItem Value="0" class="folder-open" Text="---Chọn hành động---"></asp:ListItem>
                <asp:ListItem Value="1" class="locked" Text="Di chuyển tới thùng rác"></asp:ListItem>
                <asp:ListItem Value="2" class="unlocked" Text="Xóa vĩnh viễn"></asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
</div>
<!-- end table -->
